/**
 * CompoundTestService.java created by zhangzhidong 
 * at 下午8:28:12 2016年7月3日
 */
package service.wechatlab.impl;


import java.util.Date;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import  pojo.weichatlab.Label;
import pojo.weichatlab.WechatClassMap;
import dao.wechatlab.LabelDao;
import dao.wechatlab.WechatClassMapDao;

/**
 * @author zhangzhidong<br>
 * comment generated at 2016年7月3日下午8:28:12<br>
 * 
 */
@Service
public class CompoundTestService {
	@Autowired LabelDao ld;
	@Autowired WechatClassMapDao wcmd;
	public void insertTest(int id){
		Label l = new Label();
		l.setClassname("Test");

		ld.addLabel(l);
		if(id==0){
			throw new RuntimeException();	
		}
		WechatClassMap wcm = new WechatClassMap(12345, 6666, 6666,new Date());
		wcmd.insertWechatClassMap( wcm);
	}
	
}
